package com.solution.decorator;

import org.displaytag.decorator.TableDecorator;

import com.solution.model.QuestionType;

public class QuestionDecorator extends TableDecorator{

	public String getActionEdit() {
		QuestionType questionType = (QuestionType)getCurrentRowObject();
		String questionTypeId = questionType.getId()+"";
		return "<a href=\"javascript:fnEditViewQuestionDetails('"+ questionTypeId + "','Edit')\">Edit</a>"; 
	}
	
	public String getActionView() {
		QuestionType questionType = (QuestionType)getCurrentRowObject();
		String questionTypeId = questionType.getId()+"";
		return "<a href=\"javascript:fnEditViewQuestionDetails('"+ questionTypeId + "','View')\">View</a>"; 
	}
}
